﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Första_meny
{
    public partial class FormInputDialog : Form
    {
       
        public int data1;
        public FormInputDialog()
        {
            InitializeComponent();
        }
        public FormInputDialog(int data)
        {
            data1 = data;
            InitializeComponent();
        }

        private void FormInputDialog_Load(object sender, EventArgs e)
        {
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            data1 = Int32.Parse(this.textBox1.Text);
            DialogResult = DialogResult.OK;
            Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult = DialogResult.Cancel;
           Close();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}

